<div class='top'>
<h1>Lista de <%= Inflector.pluralize(@model).to_s %></h1>
<%= display_menu %>
</div>
<div class='body'>
<table>
  <tr>
  <% for column in @model.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>

<% for record in @collection %>
  <tr>
  <% for column in @model.content_columns %>
    <td><%=h record.send(column.name) %></td>
  <% end %>
    <td>
	    <%= link_to 'Show', :action => 'show', :id => record %>
	    <%= link_to 'Edit', :action => 'edit', :id => record %>
	    <%= link_to 'Destroy', { :action => 'destroy', :id => record }, :confirm => 'Are you sure?', :method => :post %>
    </td>
  </tr>
<% end %>
</table>

<%= link_to 'Previous page', { :page => @pages.current.previous } if @pages.current.previous %>
<%= link_to 'Next page', { :page => @pages.current.next } if @pages.current.next %>



<%= link_to image_tag("add", :size => "40x40", :border => 0), :action => 'new' %>
</div>

